﻿using System;
using System.ComponentModel;
using System.Windows;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TVK03 
    { 
       
     
        public TVK03()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VVKKOPF();
            this.DataContext = MV; 
            InitializeComponent(); 
           
        }
   
        public override void OnKUNDNRBYChg(string value)
        {
            TBMain.Clear();
            if (value.Length < 8)
                return;
            dwData = TBMain.NewRow();
            dwData["VKKMANDANT"] = app.Mandant; ;
            dwData["VKKKUNDNR"] = value;
            SResult = TMV.QueryVKKOPF(dwData, 3);
            MergeData(SResult, false, true);
            base.OnKUNDNRBYChg(value);
        }
       
    }
}
